const express = require('express')
const logger = require('./middleware/logger')
const app = express()

const port = 3000

app.use(logger)

app.get('/', (reg, res) => {
  res.send('Hello World')
})

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
})